package com.backend.modules.notification.convert;

import com.backend.modules.notification.entity.Notification;
import com.backend.modules.notification.vo.NotificationVO;
import org.springframework.beans.BeanUtils;

public class NotificationConvert {
    
    public static NotificationVO convert(Notification notification) {
        if (notification == null) {
            return null;
        }
        
        NotificationVO vo = new NotificationVO();
        BeanUtils.copyProperties(notification, vo);
        return vo;
    }
}